package com.evan.designpatterns.observer.refactor.event;

import com.evan.designpatterns.observer.refactor.Question;
import com.evan.designpatterns.observer.refactor.event.abstracts.Event;
import com.evan.designpatterns.observer.refactor.event.abstracts.ISingleTeacherEvent;

/**
 * @author :liujiapeng01
 * @date :2019-03-19 17:02
 **/
public class MicEvent extends  ISingleTeacherEvent {
    public MicEvent(Question question) {
        super(question);
    }

    @Override
    public void publish() {
        System.out.println("mic 收到问题" + this.getQuestion().toString());
    }
}
